use xiaohao_ar::string_ar::*;

// 1.
#[test]
fn reverse_string_test() {
    let mut s1 = vec!['h', 'e', 'l', 'l', 'o'];
    assert_eq!(vec!['o', 'l', 'l', 'e', 'h'], reverse_string(&mut s1));
}

// 2.
#[test]
fn first_uniq_char_test() {
    let s1 = "peple";
    assert_eq!(2, first_uniq_char(s1));
}
